set -x
set -e
cd /data/local/tmp/benchmark
echo 1500000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 1500000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1500000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo 1500000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo 1500000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
echo 1500000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
echo 1500000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
echo 1500000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq
./bionic_benchmark > bionic_benchmark.log
./musl_benchmark > musl_benchmark.log
set +x